/*7SDMIgexLY9TFEYuO69iBotJYYOd8rnt/XuqXs+QZJiBM+p/gO5EPZnDuBw4TV8c*/
/*
 * @Author: xiahui 
 * @PageInfo: 审批详情
 * @Date: 2019-02-13 13:28:01 
 * @Last Modified by: zhr
 * @Last Modified time: 2021-10-13 15:57:03
 */
import { AREA, FIELDS } from '../../constance';

export default function(props) {
	let blatest = props.form.getFormItemsValue(AREA.cardFormId, FIELDS.blatest).value;
	let fstatusflag = props.form.getFormItemsValue(AREA.cardFormId, FIELDS.fstatusflag).value;
	let pk = props.form.getFormItemsValue(AREA.cardFormId, FIELDS.pk_ct_pu).value;
	let pk_origct = props.form.getFormItemsValue(AREA.cardFormId, FIELDS.pk_origct).value;
	if (blatest && fstatusflag == '1') {
		pk = pk_origct ? pk_origct : pk;
		// pk = props.form.getFormItemsValue(AREA.cardFormId, FIELDS.pk_origct).value;
	}
	this.setState({
		showApproveInfo: true,
		pk: pk,
		billtype: props.form.getFormItemsValue(AREA.cardFormId, FIELDS.vtrantypecode).value
	});
}

/*7SDMIgexLY9TFEYuO69iBotJYYOd8rnt/XuqXs+QZJiBM+p/gO5EPZnDuBw4TV8c*/